﻿using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens;
using System.Collections.ObjectModel;
using System.ServiceModel.Security;
using System.ServiceModel;
using System.IdentityModel.Claims;


namespace SecurityTokenServiceNS
{
	public class IssuedClaimsProcessor
	{
		public static Collection<Claim> GetIssuedClaims(RST rst)
		{
            Console.WriteLine("Obtaining claims to be issued...");

			Collection<Claim> claims = new Collection<Claim>();
			
			foreach (IIssuedClaimsProcessor icp in AddInTool.IssuedClaimsProcessor)
				icp.GetIssuedClaims(rst, claims);

			return claims;
		}
	}
}
